package com.xjh.basestudy.javabase.Collection;

import java.util.LinkedHashSet;

public class TestLinkedHashSet {
    public static void main(String[] args) {
        LinkedHashSet<String> l = new LinkedHashSet<String>();
        //添加元素
        l.add("hello");
        l.add("java");
        //遍历
        for(String s : l){
            System.out.println(s);
        }

    }
}
